/**
 * Copyright &copy; 2012-2016 <a href="https://www.kaaction.com">KAA</a> All rights reserved All rights reserved.
 */
package com.kaaction.modules.market.entity;

import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.kaaction.common.persistence.DataEntity;

/**
 * 获奖结果Entity
 * @author zengbiao
 * @version 2017-04-22
 */
public class EventLotteryDetail extends DataEntity<EventLotteryDetail> {
	
	private static final long serialVersionUID = 1L;
	private String eventId;		// event_id
	private String eventLotteryId;		// event_lottery_id
	private String winnerName;		// winner_name
	private String winnerMobile;		// winner_mobile
	private String winnerContact;		// winner_contact
	private Date winnerDate;		// winner_date
	
	public EventLotteryDetail() {
		super();
	}

	public EventLotteryDetail(String id){
		super(id);
	}

	@Length(min=1, max=45, message="event_lottery_id长度必须介于 1 和 45 之间")
	public String getEventLotteryId() {
		return eventLotteryId;
	}
	@Length(min=1, max=45, message="event_id长度必须介于 1 和 45 之间")
	public String getEventId() {
		return eventId;
	}

	public void setEventId(String eventId) {
		this.eventId = eventId;
	}

	public void setEventLottery(String eventLotteryId) {
		this.eventLotteryId = eventLotteryId;
	}
	
	@Length(min=0, max=45, message="winner_name长度必须介于 0 和 45 之间")
	public String getWinnerName() {
		return winnerName;
	}

	public void setWinnerName(String winnerName) {
		this.winnerName = winnerName;
	}
	
	@Length(min=0, max=45, message="winner_mobile长度必须介于 0 和 45 之间")
	public String getWinnerMobile() {
		return winnerMobile;
	}

	public void setWinnerMobile(String winnerMobile) {
		this.winnerMobile = winnerMobile;
	}
	
	@Length(min=0, max=45, message="winner_contact长度必须介于 0 和 45 之间")
	public String getWinnerContact() {
		return winnerContact;
	}

	public void setWinnerContact(String winnerContact) {
		this.winnerContact = winnerContact;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getWinnerDate() {
		return winnerDate;
	}

	public void setWinnerDate(Date winnerDate) {
		this.winnerDate = winnerDate;
	}
	
}